package com.pq.service.product;

import com.pq.pojo.order.OrderCart;
import com.pq.pojo.product.Product;
import com.pq.pojo.product.ProductBanner;
import com.pq.pojo.product.ProductImg;
import com.pq.vo.SysResult;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

public interface ProductService {
    List<ProductBanner> findProductBanner();

    Product findProductById(Integer productId);

    List<Product> findProductList(String byFlag, String orderCol, Integer startIndex, Integer rows);

    List<Product> findProductTypeId(Integer logType, Integer typeId);

    ProductImg findImagesByProductId(Integer productId, Integer imgType);

    SysResult findProductByList(Integer typeId, String orderFlag, Integer pageCurrent);

    int doSaveOrderCart(Integer productId, Integer productCounts, Integer userId);

    OrderCart doSaveOrderPayDirectly(Integer productId, Integer productCounts, Integer userId);

    int insertOrderId(Integer orderId, String productId, Long orderCartId);
}
